package com.jkgh.remedium.states {

	import com.jkgh.remedium.RemediumSystem;
	import com.jkgh.remedium.objects.messages.RemediumInMessage;
	
	public class OrderAwaitingState implements RemediumState {
		
		public function onBytesAvailable(remedium:RemediumSystem):void {
			var message:RemediumInMessage = RemediumInMessage.recognize(remedium);
			message.consumeContent(remedium, function():void {
				remedium.setState(new OrderAwaitingState());
			});
		}
	
	}
}